﻿#pragma once

#include "EditorPageAreaView.h"
#include "EditorPageAreaManagerView.m.h"


class REditorPageAreaManagerViewModel;
class REditorSplitableLayoutView;

RCLASS(ExtraHeader="Widgets/Splitable/EditorSplitableLayoutView.h")
class REditorPageAreaManagerView : public RObject
{
    ROBJECT

public:
    void BindViewModel(TSharedObjectPtr<REditorPageAreaManagerViewModel> InViewModel);
    void CreateWidget(TSharedObjectPtr<RWidget> InParent);
public:
    TSharedObjectPtr<REditorSplitableLayoutView> GetLayout() const { return LayoutModel; }
protected:
    TWeakObjectPtr<REditorPageAreaManagerViewModel> ViewModel;

    RFIELD()
    TSharedObjectPtr<REditorSplitableLayoutView> LayoutModel;

};